<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>  
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<s:iterator value="users"  >
<p>基本资料：</p>
<p>姓名：<s:property value="userName"/></p>
<p>密码：<s:property value="password" /></p>
<p>性别：
<s:if test="sex == 1"></s:if>男<s:else>女</s:else>
<p>级别：
<s:if test="authority.authorityId == 1">游客</s:if>
<s:if test="authority.authorityId == 2">管理员</s:if>
<s:if test="authority.authorityId == 3">总经理</s:if>
<s:if test="authority.authorityId == 4">副总经理</s:if>
<s:if test="authority.authorityId == 5">总监</s:if>
<s:if test="authority.authorityId == 6">部门经理</s:if>
<s:if test="authority.authorityId == 7">高级员工</s:if>
<s:if test="authority.authorityId == 8">普通员工</s:if>
</p>
<p>职务：<s:property value="duty" /></p>
<p>部门：<s:property value="department" /></p>
<p>员工编号：<s:property value="employeeNumber" /></p><br>
</s:iterator>

<s:if test="filesList != null"><s:iterator value="filesList">
<form action="fileAction_addFiles" namespace="/" method="post" name="form1">
<s:hidden name="userId" value="%{userId}"></s:hidden>
<p>详细档案：</p>
<p>籍贯：<input type="text" name="files.nativePlace" value="${nativePlace}"></p>
<p>户口：<input type="text" name="files.resident" value="${resident}"></p>
<p>住址：<input type="text" name="files.address" value="${address}"></p>
<p>联系方式：<input type="text" name="files.phone" value="${phone}"></p>
<p>邮箱：<input type="text" name="files.email" value="${email}"></p>
<p>婚姻状态：<input type="text" name="files.maritalStatus" value="${maritalStatus}"></p>
<p>毕业院校：<input type="text" name="files.graduatingSchool" value="${graduatingSchool}"></p>
<p>学位：<input type="text" name="files.degree" value="${degree}"></p>
<p>出生年月：<input type="date" name="files.birthday" value="<fmt:formatDate value="${birthday}" pattern="yyyy-MM-dd"/>"></p>
<p>身份证号：<input type="text" name="files.idcardNumber" value="${idcardNumber}"></p>
<p>入职时间：<input type="date" name="files.hiredate" value="<fmt:formatDate value="${hiredate}" pattern="yyyy-MM-dd"/>"></p>
<p>政治面貌：<input type="text" name="files.politicsStatus" value="${politicsStatus}"></p>
<p>纸质档案文件编号：<input type="text" name="files.fileNumber" value="${fileNumber}"></p>
<input type="submit" value="提交">
</form>
</s:iterator></s:if>
<s:else>
<form action="fileAction_addFiles" namespace="/" method="post" name="form2">
<s:hidden name="userId" value="%{userId}"></s:hidden>
<p>详细档案：</p>
<p>籍贯：<input type="text" name="files.nativePlace" ></p>
<p>户口：<input type="text" name="files.resident" ></p>
<p>住址：<input type="text" name="files.address" ></p>
<p>联系方式：<input type="text" name="files.phone" ></p>
<p>邮箱：<input type="text" name="files.email" ></p>
<p>婚姻状态：<input type="text" name="files.maritalStatus" ></p>
<p>毕业院校：<input type="text" name="files.graduatingSchool" ></p>
<p>学位：<input type="text" name="files.degree" ></p>
<p>出生年月：<input type="date" name="files.birthday" ></p>
<p>身份证号：<input type="text" name="files.idcardNumber" ></p>
<p>入职时间：<input type="date" name="files.hiredate" ></p>
<p>政治面貌：<input type="text" name="files.politicsStatus" ></p>
<p>纸质档案文件编号：<input type="text" name="files.fileNumber" ></p>
<input type="submit" value="提交">
</form>
</s:else>
</body>
</html>